#ifndef HELPBROWSER_H
#define HELPBROWSER_H

#include <QtGui/QMainWindow>
#include <QtHelp>
#include <QLineEdit>
#include <QLabel>

namespace Ui {
    class HelpBrowser;
}

class HelpBrowser : public QMainWindow {
    Q_OBJECT
    Q_DISABLE_COPY(HelpBrowser)
public:
    explicit HelpBrowser(QWidget *parent = 0);
    virtual ~HelpBrowser();

protected:
    virtual void changeEvent(QEvent *e);

private slots:
    void changeContent(const QModelIndex &idx);
    void changeUrl(const QUrl &url);
    void filterChanged(const QString& filter);

private:
    Ui::HelpBrowser *m_ui;
    QHelpEngine *helpEngine;
    QLineEdit   *filter;
    QLabel      *label;
};

#endif // HELPBROWSER_H
